<!-- 
	暂无数据：
	<c-empty-data empty-text="暂无数据"></c-empty-data>
-->
<template>
	<view class="empty-data">
		<image class="empty-pic" src="/static/images/empty-bg.png" mode="widthFix"></image>
		<text class="empty-label">{{props.emptyText || '暂无数据'}}</text>
	</view>
</template>

<script setup>
	const props = defineProps({
		emptyText: String, // 显示的文字
	});
</script>

<style lang="less" scoped>
	.empty-data {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding-top: 100rpx;

		.empty-pic {
			width: 200rpx;
			height: 200rpx;
		}

		.empty-label {
			font-size: 24rpx;
			color: #888;
			margin-top: 30rpx;
		}
	}
</style>